package com.woniuxy.yoga.order.client;

import com.woniuxy.yoga.commons.core.model.Result;
import com.woniuxy.yoga.feign.config.FeignConfig;
import com.woniuxy.yoga.order.model.form.AddServiceEvaluationForm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

@FeignClient(name = "evaluate-service",configuration = FeignConfig.class,path = "/evaluate")
public interface EvaluateClient {

    /**
     * 自动评价服务
     * @param form 参数
     * @return String
     */
    @PostMapping("/addServiceEvaluationAuto")
    Result<String> addServiceEvaluationAuto(@RequestBody @Valid AddServiceEvaluationForm form);
}
